package com.artfighting.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.artfighting.business.CategoryBusiness;

@Controller
public class CategoryController {
	
	@Autowired CategoryBusiness categoryBusiness;
	
	@RequestMapping(value = "/catnew", method = RequestMethod.GET)
	public String catNew() {
		
		categoryBusiness.saveCategory("Kata", "A");
		return "/cat/catnew";
	}

}
